package practicedemo27;

public class StudentTest {
    public static void main(String[] args) {
        //创建对象stu1
        Student stu1 =  new Student();
        //赋值
        stu1.setName("Stephen Hu");
        stu1.setAge(20);
        //获取
        String name = stu1.getname();
        int age = stu1.getAge();
        //打印
        System.out.println(name+'\t'+age);
    }
}
